﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 商品信息表
    ///   [ForeignKey("CommodityInformationSheetId")]
    /// </summary>
    public class CommodityInformationSheet
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
      
        public Guid Id { get; set; }//商品编码
        public string ProductName { get; set; }//商品名称
        [ForeignKey("GoodsTypeId")]
        public Guid GoodsTypeId { get; set; }//类别
        public string Model { get; set; }//型号
        public string Units { get; set; }//单位

        [ForeignKey("CinfoId")]
        public Guid CinfoId { get; set; }//仓库编码
        //public string StorageWarehouse { get; set; }//存放仓库      我的理解，是仓库的名字
        public decimal UnitPriceOfWarehousingPlan { get; set; }//入库计划单价 
        public decimal UnitPriceOfDeliveryPlan { get; set; }//出库计划单价 
        public float TheOriginalInventory { get; set; }//原始库存 
        public float AlertMinimumStock { get; set; }//警戒最小库存 
        public float AlertMaximumStock { get; set; }//警戒最大库存
        public Cinfo Cinfo { get; set; }

        public GoodsType GoodsType { get; set; }
    }
}
